<extend name="Public:base"/>

<block name="left">
	<ul>
	
	<li><a href="{:U('Cate/lst')}">所有分类</a></li>
    	<li><a href="{:U('Cate/web')}"">网页</a></li>
    	<li><a href="{:U('Cate/news')}"">新闻</a></li>
    	<li><a href="{:U('Cate/enc')}"">百科</a></li>
		
	</ul>
</block>

<block name="right">
	<div class="container clearfix">
	    <div class="sidebar-wrap">
	        <div class="sidebar-title">
	            <h1>菜单</h1>
	        </div>
	        <include file="Common/left" />
	    <!--/sidebar-->
	    <div class="main-wrap">

	        <div class="crumb-wrap">
	            <div class="crumb-list"><i class="icon-font"></i><a href="{:U('Index/index')}">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">网页管理</span></div>
	        </div>
	        <div class="search-wrap">
	            <div class="search-content">
	                <form action="/jscss/admin/design/index" method="post">
	                    <table class="search-tab">
	                        <tr>
	                            <th width="120">选择分类:</th>
	                            <td>
	                                <select name="search-sort" id="">
	                                    <option value="">网页关键字</option>
	                                    <option value="19"></option><option value="20"></option>
	                                </select>
	                            </td>
	                            <th width="70">关键字:</th>
	                            <td><input class="common-text" placeholder="关键字" name="keywords" value="" id="" type="text"></td>
	                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
	                        </tr>
	                    </table>
	                </form>
	            </div>
	        </div>
	        <div class="result-wrap">
	            <form name="myform" id="myform" method="post">
	                <div class="result-title">
	                    <div class="result-list">
	                   		<a href="__CONTROLLER__/add" class="btn btn-primary btn2">新增关键字分类</a>

	                        <a id="batchDel" href="javascript:void(0)">
	                      <!--  	 <i class="glyphicon"></i> -->
	                        	<input form="myform" formaction="__CONTROLLER__/bdel" type="submit" class="btn btn-primary btn2 " value="批量删除" />
	                        </a>
	                        <a id="updateOrd" href="javascript:void(0)">
	                       		<!--  <i class="glyphicon glyphicon-refresh"></i> -->
	                        	<input form="myform" formaction="__CONTROLLER__/sortcate" type="submit" class="btn btn-primary btn2" value="更新排序" />
	                        	
	                        </input>
	                       	</a>
	                    </div>
	                </div>
	                <br />
	                <div class="result-content">
	                    <table class="result-tab" width="100%">
	                        <tr>
	                            <th class="tc" width="4%"><input class="allChoose" name="" id='check' type="checkbox"></th>
	                            <th>排序</th>
	                            <th>ID</th>
	                            <th>栏目名称</th>
	                            <th>超级链接数量</th>
	                            <!-- <th>栏目类型</th> -->
	                       <!-- 
	                            <th>是否PC端</th> -->
	                            <th>操作</th>
	                        </tr>
	                        <volist name="cates" id="vo">
	                        <tr>
	                            <td class="tc"><input name="ids[]" value="{$vo.id}" class="check" type="checkbox"></td>
	                            <td>
	                               
	                                <input class="common-input sort-input" name="{$vo.id}" value="{$vo.sort}" type="text">
	                            </td>
	                            <td>{$vo.id}</td>
	                            <td><if condition="$vo['parentid'] neq 0">|</if><?php echo str_repeat('-', $vo['level']*8);?>{$vo.name}</td>
	                           <!--  <td>
	                            <if condition="$vo['type'] eq 1">  
	                            列表 
	                            </if>
	                            <if condition="$vo['type'] eq 2">  
	                            单页
	                            </if>
	                            <if condition="$vo['type'] eq 3">  
	                            留言
	                            </if>
	                            <if condition="$vo['type'] eq 4">  
	                            招聘
	                            </if>
	                            <if condition="$vo['type'] eq 5">  
	                            车辆列表
	                            </if>
	                            <if condition="$vo['type'] eq 6">  
	                            荣誉列表
	                            </if>
	                            <if condition="$vo['type'] eq 7">  
	                            求职表
	                            </if>
	                            </td> -->
	                       <!--      <td>
	                             <if condition="$vo['pic'] neq ''">   
	                            <img src="__ROOT__{$vo.pic}" height="50">
	                            <else />
	                            暂无缩略图
	                            </if>
	                            </td> -->
	                            <td>
	                              <if condition="$vo['pc'] eq 1">PC端
	                              <else />
	                              移动端
	                              </if>  

	                            </td>
	                            <td>
	                                <a class="link-update" href="__CONTROLLER__/edit/id/{$vo.id}">修改</a>
	                                <a class="link-del" onclick="return confirm('确定删除本栏目及其子栏目？');" href="__CONTROLLER__/del/id/{$vo.id}">删除</a>
	                            </td>
	                        </tr>
	                        </volist>
	                    </table>
	                </div>
	            </form>
	        </div>
	    </div>
	    <!--/main-->


	    
<script type="text/javascript">
    $("#check").click(function(){
        if($(this).attr("checked"))
        {
            $(".check").attr("checked","checked")
        }else
        {
            $(".check").removeAttr("checked")
        }
    })
</script>

<!--  -->
</block>